package com.eic.framework.core.domain;

import java.util.function.Function;

public class CommonWrapperVFunction {
    private static Function<String,String> fUserNameById;

    public static void setFunctionUserNameById(Function<String,String> function){
        fUserNameById=function;
    }

    public static String getUserName(String userId){
        if(fUserNameById==null){
            return null;
        }
        return fUserNameById.apply(userId);
    }
}
